<div class="row">
    <div class="span12">
        <div class="is-block bottom">

            <?php
            if ($campaign_list) {
                $this->load->helper('url');

                foreach ($campaign_list as $campaign) {
                    ?>
                    <style>
        <?php echo $campaign['css_preset'] ?>
                    </style>
                    <table class="<?php echo $campaign['css_class'] ?> table campaign-list-table">
                        <thead>
                            <tr>
                                <th colspan="3"><?php echo $campaign['title'] ?></th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td style="width: 100px;"><img src="<?php echo base_url() ?>timthumb.php?src=<?php echo base_url() ?>uploads/sponsor_logo/<?php echo $campaign['logo'] ?>" style="border-radius:5px;"/></td>
                                <td >
                                    <?php
                                    if ($campaign['candidate_vdo'] != 0) {
                                        echo '<i class="icon-film"></i> ส่งวีดีโอ Youtube จำนวน: ' . $campaign['candidate_vdo'] . ' คลิป';
                                    }
                                    if ($campaign['candidate_image'] != 0) {
                                        echo '<i class="icon-camera-retro"></i> ส่งรูปถ่ายจำนวน: ' . $campaign['candidate_image'] . ' รูป';
                                    }
                                    if ($campaign['candidate_text'] != 0) {
                                        echo '<i class="icon-file-alt"></i> ส่งเอกสารบทความจำนวน: ' . $campaign['candidate_text'] . ' ชิ้น';
                                    }
                                    ?>
                                    <hr/>
                                    <?php
                                    echo $this->campaign->campaign_reward_title_display(
                                            array(
                                                'positive_score_reward' => $campaign['positive_score_reward'],
                                                'view_score_reward' => $campaign['view_score_reward'],
                                                'wilson_score_reward' => $campaign['wilson_score_reward'],
                                                
                                    ));
                                    ?>
                                </td>

                                <td style="width: 200px;">
                                    <a href="<?php echo base_url() ?>contest/<?php echo $hash?>/announce" class="btn btn-success btn-block"><i class="icon-certificate"></i> ประกาศผลรางวัล</a>
                                    <a href="<?php echo base_url() ?>contest/<?php echo $hash?>" class="btn btn-danger btn-block"><i class="icon-fire"></i> หน้าการแข่งขัน</a>
                                    <a href="<?php echo base_url() ?>contest/<?php echo $hash?>/description" class="btn btn-primary btn-block"><i class="icon-zoom-in"></i> รายละเอียดการแข่งขัน</a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <?php
                }
            } else {
                ?>
                <div class="alert alert-warning" style="margin-bottom:0">
                    <i class="icon icon-exclamation-sign"></i> ยังไม่มีการประกาศผลกิจกรรมใดๆ ในขณะนี้
                </div>
    <?php
}
?>

        </div>
    </div>

</div>